/**
 * Apr 2, 2011
 * 9:45:36 PM
 * Timiz
 * kukujun@gmail.com
 *cn.lastjune.service.impltimiz-project-dpProcessregionServiceImpl
 */
package cn.lastjune.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.lastjune.dao.ProcessregionDao;
import cn.lastjune.pojo.Processregion;
import cn.lastjune.service.ProcessregionService;
import cn.lastjune.util.Page;

/**
 * @author Timiz
 *         kukujun@gmail.com
 */
@Service
@Transactional
public class ProcessregionServiceImpl implements ProcessregionService
{

    @Autowired
    ProcessregionDao dao;

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.Processregionservice#getAll(cn.lastjune.util.Page)
     */
    @Override
    public Page<Processregion> getAll(Page<Processregion> page)
    {

        return dao.getPageAll(page);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.Processregionservice#getProcessregionById(java.math.BigDecimal)
     */
    @Override
    public Processregion getProcessregionById(BigDecimal id)
    {

        return dao.get(id);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.Processregionservice#insertProcessregion(cn.lastjune.pojo.Processregion)
     */
    @Override
    public void insertProcessregion(Processregion entity)
    {
        dao.add(entity);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.Processregionservice#deleteProcessregion(java.math.BigDecimal)
     */
    @Override
    public void deleteProcessregion(BigDecimal id)
    {
        dao.delete(id);
    }

    /*
     * (non-Javadoc)
     * @see cn.lastjune.service.Processregionservice#updateProcessregion(cn.lastjune.pojo.Processregion)
     */
    @Override
    public void updateProcessregion(Processregion entity)
    {
        dao.update(entity);
    }

}
